<%@attribute name="items" required="true" type="java.util.Collection"%>
<%@attribute name="first" type="java.lang.Object"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib tagdir="/WEB-INF/tags" prefix="my"%>
<c:if test="${first == null || empty first}">
    <c:set var="first" value="0" />
</c:if>
<div id="radio" class="fieldset">
    <c:forEach var="a" items="${items}">
        <c:if test="${first == a.id || first == 0}">
            <c:set var="checked" value="checked=\"checked\"" />
            <c:remove var="first" />
        </c:if>
        <input type="radio" id="address_${a.id}" name="address_id" value="${a.id}" ${checked} />
        <label for="address_${a.id}">
            <my:adresse item="${a}" />
        </label>
        <c:remove var="checked" />
    </c:forEach>
    <div class="clear"></div>
</div>